// <copyright file="AutopostbackTreeView.aspx.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System;
using YUIAspNet;

namespace YUIAspNetDemo.TreeView
{
    public partial class AutopostbackTreeView : BaseDemoPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.tree.Click += new EventHandler<YUIAspNet.TreeViewClickEventArgs>(tree_Click);
            this.TreeView1.Click += new EventHandler<YUIAspNet.TreeViewClickEventArgs>(TreeView1_Click); 
        }

        void TreeView1_Click(object sender, TreeViewClickEventArgs e)
        {
            this.lblUpdatePanel.Text = "SelectedNode: " + e.Node;
        }

        void tree_Click(object sender, TreeViewClickEventArgs e)
        {
            this.lblRegularPostback.Text = "SelectedNode: " + e.Node;
        }
    }
}
